extends MarginContainer

@onready var start_button: Button = $Panel/MarginContainer/VBoxContainer/StartButton
@onready var exit_button: Button = $Panel/MarginContainer/VBoxContainer/ExitButton

func  _ready() -> void:
	start_button.pressed.connect(_start_button_clicked)
	exit_button.pressed.connect(_exit_game)
	pass
	
func  _start_button_clicked()->void:
	var story_list:Array[StoryEntity] = FileTool.load_story()	
	GlobalConfig.story_list = story_list
	get_tree().change_scene_to_file("res://Scences/story_choose.tscn")
	pass
func _exit_game():
	get_tree().quit()
	pass
